home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 49 / PCPP49a.iso / editors / sofsdk / SoF SDK.msi / _52AB60476C364ED0A431C9E5B0ED0882 < prev    next >
Encoding:
Text File  |  2000-03-27  |  969 b   |  39 lines

  1. #include "../common/header.ds"
  2. output "p:/base/ds/tsr1"
  3.  
  4. /////////////////////////////////////////////////
  5. // Declare
  6.  
  7. local entity camroom_door
  8. local entity camroom_hole
  9. local entity openout
  10. local int sig1
  11. local int sig2
  12. local int health
  13.  
  14. /////////////////////////////////////////////////
  15. // Assign
  16.  
  17. camroom_door = find entity with targetname "camroom_door"
  18. camroom_hole = find entity with targetname "camroom_hole"
  19. openout = find entity with targetname "openout"
  20.  
  21. /////////////////////////////////////////////////
  22. // Action
  23.  
  24. camroom_hole.movetype = MOVETYPE_NOCLIP
  25. health = camroom_door.health
  26.  
  27. if health < 100 
  28.     exit
  29.  
  30. endif
  31.  
  32.  
  33. rotate entity camroom_door by [0, 90,0] at 90 speed signaling sig1
  34. rotate entity camroom_hole by [0, 90,0] at 90 speed signaling sig2
  35. wait for all clearing sig1,sig2
  36. use entity openout  // triggers the func wall out if the player killed the doorkicking guy
  37. camroom_hole.movetype = MOVETYPE_NONE
  38.  
  39. // End